package cn.usbtg.jfinal.plugin.autoroute.formatter;

import cn.usbtg.jfinal.plugin.autoroute.ControllerNameFormatter;

/**
 * 首字母转换为小写控制器名称格式化器
 */
public class FirstToLowerControllerNameFormatter implements ControllerNameFormatter {

    @Override
    public String format(String controllerName) {
        return controllerName.substring(0, 1).toLowerCase() + controllerName.substring(1);
    }
}